package Demo01.Tesk.OuterDemo01;

public class Test01 {
    public static void main(String[] args) {

        //绝对值
        int num = Math.abs(20);
        System.out.println(num);

        //向上转型
        double num1 = Math.ceil(50.1);
        System.out.println(num1);

        //向下转型
        double num2 = Math.floor(50.1);
        System.out.println(num2);

        double num3 = Math.round(10.5);
        System.out.println(num3);

        double pow = Math.pow(10, 3);
        System.out.println(pow);

        double num5 = Math.random();
        System.out.println(num5);

        double num6 = Math.max(50,100);
        System.out.println(num6);

    }

}
